package com.jhyspringcloud.user.service.impl;

import com.jhyspringcloud.user.dao.UserDao;
import com.jhyspringcloud.config.pojo.dto.UserDto;
import com.jhyspringcloud.user.service.UserService;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserDao userDao;

    @Override
    public UserDto findOrderById(Long id) {
        UserDto UserDto = new UserDto();
        BeanUtils.copyProperties(userDao.selectByPrimaryKey(id),UserDto);
        return UserDto;
    }
}
